Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

790 ransack clear filters #936

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Conversation

igorSimash
Copy link
Contributor

@igorSimash igorSimash commented Nov 2, 2024

Resolves: #790

Code reviewers

Summary of issue

There is no logic to clear filters in account/calculators, categories, products etc. pages.

Summary of change

Added button to ransack form that links user to clear (without any filters) page.
image

CHECK LIST

  • СI passed
  • Сode coverage >=95%
  • PR is reviewed manually again (to make sure you have 100% ready code)
  • All reviewers agreed to merge the PR
  • I've checked new feature as logged in and logged out user if needed
  • PR meets all conventions

@igorSimash igorSimash changed the title added clear filters btn for ransack form 790 ransack clear filters Nov 2, 2024
app/views/account/shared/_search_form.html.erb Outdated Show resolved Hide resolved
Copy link

codecov bot commented Nov 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.16%. Comparing base (3bff2f0) to head (d858f3e).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #936   +/-   ##
========================================
  Coverage    91.16%   91.16%           
========================================
  Files           70       70           
  Lines          973      973           
========================================
  Hits           887      887           
  Misses          86       86           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@loqimean loqimean force-pushed the develop branch 4 times, most recently from 03a3caf to 7d2dc81 Compare December 2, 2024 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Search bar] Default state is not performed after reloading the page
3 participants